package com.ssm.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
@ComponentScan({"com.ssm.service"})
//属性配置文件
@PropertySource("classpath:jdbc.properties")
//导入其他配置到Spring配置
@Import({MyBatisConfig.class,MyDataSourceConfig.class})
//开启驶入管理机制
@EnableTransactionManagement
public class SpringConfig {
}
